/**
 * 获取图层信息结果
 * @param {*} url 地图服务地址
 * @param {*} {eventListeners:undefined,isTempLayers:false} 
 * @see http://iclient.supermap.io/libs/iclient8c/apidoc/files/SuperMap/REST/LayerServices/GetLayersInfoService-js.html 
 */
export const getLayersInfoService = (url, options={eventListeners:undefined,isTempLayers:false}) => new Promise((resovle, reject) => {
  var getLayersInfoService = new SuperMap.REST.GetLayersInfoService(url, options);
  getLayersInfoService.events.on({ processCompleted: resovle, processFailed: reject })
  getLayersInfoService.processAsync();
})

